package com.zuowei.ycy.user.domain;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by yzy on 2016/4/27.
 */
public class ShopCarInfo implements Parcelable {
    private String goods_id;
    private int number;
    private String goods_name;
    private String price;


    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getGoods_id() {
        return goods_id;
    }

    public void setGoods_id(String goods_id) {
        this.goods_id = goods_id;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public String getGoods_name() {
        return goods_name;
    }

    public void setGoods_name(String goods_name) {
        this.goods_name = goods_name;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.goods_id);
        dest.writeInt(this.number);
        dest.writeString(this.goods_name);
        dest.writeString(this.price);
    }

    public ShopCarInfo() {
    }

    protected ShopCarInfo(Parcel in) {
        this.goods_id = in.readString();
        this.number = in.readInt();
        this.goods_name = in.readString();
        this.price = in.readString();
    }

    public static final Creator<ShopCarInfo> CREATOR = new Creator<ShopCarInfo>() {
        public ShopCarInfo createFromParcel(Parcel source) {
            return new ShopCarInfo(source);
        }

        public ShopCarInfo[] newArray(int size) {
            return new ShopCarInfo[size];
        }
    };
}
